require 'enumerator'

s = [3,45,4,5,56,234,4,45,56,56,345,435,56,56]

s.each_slice(4) {|a| p a}